using System.ComponentModel.DataAnnotations;

namespace Shop.Model.Dto.Admin.JurUser;

public class UserAddDto
{
    /// <summary>
    /// 用户名称
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 账号名称
    /// </summary>
    [Required(ErrorMessage = "账号不可为空")]
    public string Account { get; set; }

    /// <summary>
    /// 性别 1：男 2: nv
    /// </summary>
    public int Sex { get; set; }

    /// <summary>
    /// 密码
    /// </summary>
    public string PassWord { get; set; }

    /// <summary>
    /// 角色ID
    /// </summary>
    public long[] Roles { get; set; }
}